using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;

public class playerMove : MonoBehaviour
{
    public Transform trPlayer;
    public CharacterController cc;
    public playerInput pi;

    Vector3 target=new Vector3(0f,0f,0f);


    private void Update()
    {
        if((pi.x != 0 | pi.z != 0) &&ps_Contronal.gamePlayer)
        {
            target.x = pi.x;
            target.z = pi.z;
            cc.SimpleMove(transform.TransformDirection(target) * playerData.instance().moveSpeed);
        }
    }
}
